<?php
/**
 * Created by PhpStorm.
 * User: chengchaogui
 * Date: 2017/11/14
 * Time: 11:38
 */

namespace App\Framework\Enum;


class CoinLogDataTypeEnum
{
    const CHIP_TYPE_CHIP = 1;//金币
    const CHIP_TYPE_TABLE_CHIP = 2;//TABLE_CHIP
    const CHIP_TYPE_COIN = 3;//COIN
    const CHIP_TYPE_DIAMOND = 4;//DIAMODN
    const CHIP_TYPE_COUPON = 5; //COUPON
    const CHIP_TYPE_ITEM = 6;//ITEM

    public static $dataMap = [
        self:: CHIP_TYPE_CHIP => '金币',
        self::CHIP_TYPE_TABLE_CHIP => 'TABLE_CHIP',
        self::CHIP_TYPE_COIN => 'COIN',
        self::CHIP_TYPE_DIAMOND => 'DIAMODN',
        self::CHIP_TYPE_COUPON => 'COUPON',
        self::CHIP_TYPE_ITEM => 'ITEM'
    ];

    public static function getName($key)
    {
        if (array_key_exists($key, self::$dataMap)) {
            return self::$dataMap[$key];
        }

        return '';
    }
}